home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / util / boot / snap_v2_0.lha / Snap / MinRexx.h < prev    next >
C/C++ Source or Header  |  1995-09-04  |  1KB  |  53 lines

  1. /*
  2.  *   Includes for minrexx.c; please refer to that file for
  3.  *   further documentation.
  4.  */
  5. #include <rexx/rxslib.h>
  6.  
  7. //STRPTR CreateArgstring(char *,long);
  8. void DeleteArgstring(STRPTR);
  9. struct RexxMsg *CreateRexxMsg(struct MsgPort *,char *,char *);
  10. void DeleteRexxMsg(struct RexxMsg *);
  11.  
  12. #ifdef AZTEC_C
  13. #pragma amicall(RexxSysBase, 0x7e, CreateArgstring(a0,d0))
  14. #pragma amicall(RexxSysBase, 0x84, DeleteArgstring(a0))
  15. #pragma amicall(RexxSysBase, 0x90, CreateRexxMsg(a0,a1,d0))
  16. #pragma amicall(RexxSysBase, 0x96, DeleteRexxMsg(a0))
  17. #endif //AZTEC_C
  18.  
  19. #ifdef LATTICE
  20. #pragma libcall RexxSysBase CreateArgstring 7e  802
  21. #pragma libcall RexxSysBase DeleteArgstring 84  801
  22. #pragma libcall RexxSysBase CreateRexxMsg   90 9803
  23. #pragma libcall RexxSysBase DeleteRexxMsg   96  801
  24. #endif //LATTICE
  25.  
  26. /*
  27.  *   This is the list of functions we can access.  (Cheap forward
  28.  *   declarations, too.)
  29.  */
  30. long upRexxPort() ;
  31. void dnRexxPort() ;
  32. void dispRexxPort() ;
  33. struct RexxMsg *sendRexxCmd() ;
  34. struct RexxMsg *syncRexxCmd() ;
  35. struct RexxMsg *asyncRexxCmd() ;
  36. void replyRexxCmd() ;
  37. /*
  38.  *   Maximum messages that can be pending, and the return codes
  39.  *   for two bad situations.
  40.  */
  41. #define MAXRXOUTSTANDING (300)
  42. #define RXERRORIMGONE (100)
  43. #define RXERRORNOCMD (30)
  44. /*
  45.  *   This is the association list you build up (statically or
  46.  *   dynamically) that should be terminated with an entry with
  47.  *   NULL for the name . . .
  48.  */
  49. struct rexxCommandList {
  50.    char *name ;
  51.    APTR userdata ;
  52. } ;
  53.